package com.ethan.guava;

import com.google.common.base.Predicate;
import com.google.common.collect.Collections2;
import com.google.common.collect.Lists;

import javax.annotation.Nullable;
import java.util.Collection;
import java.util.List;

/**
 * @author ethan
 * create 2018-05-28 下午5:13
 * desc
 **/
public class FilterTest {
    public static void main(String[] args){
        List<String> list = Lists.newArrayList("aa","bb","cc");

        Collection<String> lt = null;

       lt = Collections2.filter(list, new Predicate<String>() {
            @Override
            public boolean apply(@Nullable String s) {
                return false;
            }
        });

        String a ="";

    }
}
